var config = {}
/**
 * @description 版本号
 */
config.version = '1.0.0'

/**
 * @description api请求基础路径
 */
config.baseUrl = {
	dev: '',
	pro: ''
}

/**
 * @description 项目部署路径，根路径'/'
 */
config.publicPath = '/'

/**
 * @description 打包文件夹名称
 */
config.outputDir = config.publicPath.replace(/\//g, '')

/**
 * @description 项目基本信息
 */
config.baseDate = {
	copyright: '2018 - 2024',
	name: '***物业公司',
	address: '地址信息',
	tel: '0412-*******',
	ICP: '辽ICP备123123123号-1',
	licence: '',
	mallName: '物业管理系统',
	operatingUnit: '***公司'
}
/**
 * @description 首页商品楼层信息
 */
config.floorList = [
]

config.whiteList = [
	'mall', 'detail', 'search', 'service-support', 'notice-list', 'notice-details',
	'platform-introduction', 'register', 'protocol-details', 'kyHome', 'newSearch', 'gfSearch', 'pgSearch',
	'task', 'register', 'newRegister'
]
/**
 * @description 默认打开的首页的路由name值，默认为home
 */
config.homeName = '/'
/*
 * @description 内外与外网资源加载跟地址
 * */
config.DNS = {
	// 内外地址
	intranet: '10.151.31.51:9001',
	// 外网地址
	outernet: [
		'59.44.153.111:9001',
		'agshop.delinzl.cn',
		'10.0.9.14:9998',
		'10.0.9.14:9999',
		'60.28.145.226:19999',
		'localhost:8088',
		'localhost:8080'
	]
}
/**
 * @description 路由处理的方式，0:前端处理;1:后端处理;
 */
config.routerType = 0

/**
 * @description 主题
 */
config.theme = 'default'

/**
 * @description 主题列表
 */
config.themeList = [{
	key: '',
	value: '科技蓝'
},
{
	key: 'green',
	value: '清新绿'
}
]

/**
 * @description 字号列表
 */
config.sizeList = [{
	key: '100',
	value: '正常'
},
{
	key: '110',
	value: '较大'
},
{
	key: '120',
	value: '超大'
}
]

/**
 * @description 顶部菜单
 */
config.topbar = false

/**
 * @description 侧边菜单
 */
config.sidebar = true

/**
 * @description 标签栏
 */
config.tagbar = true

/**
 * @description token在Cookie中存储的天数，默认1天select
 */
config.cookieExpires = 1

/**
 * @description 是否使用国际化，默认为false
 *              如果不使用，则需要在路由中给需要在菜单中展示的路由设置meta: {title: 'xxx'}
 *              用来在菜单中显示文字
 */
config.useI18n = false

/**
 * @description 需要加载的插件
 */
config.plugin = {
	errorInfo: true
}

config.activityStatus = [
	"项目经理审批",
	"审批通过",
	"驳回",
	"审批中",
	"必要属性不全",
	"已导入",
	"6",
	"7",
	"8",
	"无效商品"
]
config.activityFilters = [
	{ text: '项目经理审批', value: "0" },
	{ text: '审批通过', value: "1" },
	{ text: '驳回', value: "2" },
	{ text: '审批中', value: "3" },
	{ text: '必要属性不全', value: "4" },
	{ text: '已导入', value: "5" },
	{ text: '无效商品', value: "9" },
	{ text: '违规商品', value: "-1" }
]

config.category = {
	itemType: [
		{ text: '办公用品', value: '0' },
		{ text: '工业用品', value: '1' },
		{ text: '', value: '2' },
		{ text: '集采协同', value: '3' }
	]
}

config.goodsSource = {
	"DATA_CENTER": "数据中心",
	"LOCAL_AGREEMENT": "年度协议标",
	"LOCAL_FOCUS": "集采协同",
	// "LOCAL_FOCUS_BJZC": "集采协同-备件资材",
	// "LOCAL_FOCUS_DCPJ": "集采协同-电铲备件",
	// "LOCAL_FOCUS_HJFG": "集采协同-合金废钢",
	// "LOCAL_FOCUS_JKKS": "集采协同-进口矿石",
	// "LOCAL_FOCUS_MT": "集采协同-煤炭",
	"LOCAL_PROVER": "扶贫",
	"LOCAL_SELF": "优采自营",
	"LOCAL_SUPPLIER": "本地供应商",
	"CUPBOARD_API": "智能柜",
	"LOCAL_SUBSIDIARIES": "子企业"
}

config.goodsSourceFilters = [
	{ text: "数据中心", value: "DATA_CENTER" },
	{ text: "年度协议标", value: "LOCAL_AGREEMENT" },
	{ text: "集采协同", value: "LOCAL_FOCUS" },
	// { text: "集采协同-备件资材", value: "LOCAL_FOCUS_BJZC" },
	// { text: "集采协同-电铲备件", value: "LOCAL_FOCUS_DCPJ" },
	// { text: "集采协同-合金废钢", value: "LOCAL_FOCUS_HJFG" },
	// { text: "集采协同-进口矿石", value: "LOCAL_FOCUS_JKKS" },
	// { text: "集采协同-煤炭", value: "LOCAL_FOCUS_MT" },
	{ text: "扶贫", value: "LOCAL_PROVER" },
	{ text: "优采自营", value: "LOCAL_SELF" },
	{ text: "本地供应商", value: "LOCAL_SUPPLIER" },
	{ text: "智能柜", value: "CUPBOARD_API" },
	{ text: "子企业", value: "LOCAL_SUBSIDIARIES" }
]

config.pre = process.env.NODE_ENV === 'development' ? "/vapi" : "/vapi";

config.supplierRole = [
	"1", "Self_supplier", "001", "Pre_Supplier", "Supplier", "Local_Supplier", "0001", "AGDS_ORDER"
]

module.exports = {
	...config
}
